package top.lyjwn.todo.common.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(
        prefix = "lyjwn.token"
)
public class TokenProperties {

    /**
     * 过期时间，毫秒
     */
    private Long expireTime = 3600L;
    /**
     * 是否使用jwt生成token
     */
    private Boolean isJwt = false;
    /**
     * token在redis保存的索引
     */
    private Integer redisIndex = 7;

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }

    public Boolean getJwt() {
        return isJwt;
    }

    public void setJwt(Boolean jwt) {
        isJwt = jwt;
    }

    public Integer getRedisIndex() {
        return redisIndex;
    }

    public void setRedisIndex(Integer redisIndex) {
        this.redisIndex = redisIndex;
    }
}
